Component({
    options:{
        styleIsolation: 'shared'
    },
    properties: {
        value:{type:[String], value:''}
    },
    data: {
        show:false,
    },
    methods: {
        open(){
            this.setData({
                show:true
            })
        },
        submit(e){
            const {note} = e.detail.value
            this.triggerEvent("confirm", {
                value:note
            })
            this.setData({
                show:false,
            })
        }
    }
});
